Skip to content

TakeUntilLifecycle class

Defined in

Namespace: ReactiveUI.Primitives.Async.Advanced Assembly: ReactiveUI.Primitives.Async.Core.dll Full name: ReactiveUI.Primitives.Async.Advanced.TakeUntilLifecycle<T> Modifiers: public sealed

Summary

View source

        Shared subscription lifecycle for the TakeUntil family of operators (CancellationToken / Task /
        raw-signal / async-observable / async-predicate variants). Each per-trigger Subscription
        composes one instance of this class (has-a, not is-a) and forwards forward-on-next / -error /
        -completed plus external-cancellation linking into it, so the previously-duplicated
        infrastructure (gate, dispose CTS, external-link registration, gated observer fan-out) lives
        in one place.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class TakeUntilLifecycle~T~
class IAsyncDisposable {
    <>
}
IAsyncDisposable <|.. TakeUntilLifecycle~T~

Implements: IAsyncDisposable

Constructors

NameSummary
.ctorInitializes a new instance of the [TakeUntilLifecycle](# class.

Properties

NameSummary
DisposeTokenGets the cached cancellation token that fires on subscription disposal.

Methods

NameSummary
LinkExternalCancellationLinks the original subscribe-time cancellation token into this subscription's dispose chain so per-emission methods can use...
RelayNextAsyncForwards a value to the downstream observer under the serialization gate.
RelayErrorAsyncForwards a non-terminal error to the downstream observer under the serialization gate.
RelayCompletionAsyncForwards the completion signal to the downstream observer under the serialization gate.
DisposeAsyncTears down the shared subscription state: cancels the dispose CTS, releases the external-link registration, disposes the gate. The owning Subscription is responsible for disposing its ...
Inherited members